
for n in range(1,10):
    a=pow(10,n-1)
    b=pow(10,n)
    i=a
    while i<b :
        if  i%2 == 0 and i%3 == 0 and i%5 == 0 and i%7 == 0:
            print i
            break
        else:
            i=i+1
    if (i == b):
        print -1
